package jt.classic.system.workflow.impl;

import jt.classic.system.workflow.WHandle;

import org.limp.basework.AbstractSimpleBean;
import org.limp.basework.Table;

import java.util.Map;


/**
 * 流程环节处理表单项权限
 *
 * @author bizkit
 *
 */
public class WHandleImpl extends AbstractSimpleBean implements WHandle {
    private String id;
    private String sid;
    private String item;
    private int type;
    private Table table;
    private int maddtype;
    private int mdeltype;

    public String istepid() {
        return this.sid;
    }

    public String item() {
        return this.item;
    }

    public int itype() {
        return this.type;
    }

    public Table itemtable() {
        return this.table;
    }

    public int iMaddtype() {
        return this.maddtype;
    }

    public int iMdeltype() {
        return this.mdeltype;
    }

    public void reload(Map info) {
        super.reload(info);
        this.id = (String) info.get("H_ID");
        this.sid = (String) info.get("S_ID");
        this.item = (String) info.get("OBJ_ITEM");
        this.type = Integer.parseInt((String) info.get("H_TYPE"));
        this.table = (Table) info.get("OBJ_TABLE");
    }

    public String id() {
        return id;
    }
}
